﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.Deployment.TeamFoundation.Entity
{
    [Serializable]
    public class TeamGroup: IComparable
    {
        public TeamProject TeamProject { get; set; }
        public string Description { get; set; }
        public string DisplayName { get; set; }
        public string Sid { get; set; }

        public TeamGroup()
        {
            TeamProject = new TeamProject();
        }

        #region IComparable Members
        public int CompareTo(object obj)
        {
            if (obj is TeamGroup)
            {
                TeamGroup otherTeamGroup = (TeamGroup)obj;
                return this.DisplayName.CompareTo(otherTeamGroup.DisplayName);
            }
            else
            {
                throw new ArgumentException("Object is not a TeamGroup");
            }   
        }
        #endregion
    }
}
